package com.hpq.user.dao;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hpq.user.domain.model.ItemBag;
import com.hpq.user.mapper.ItemBagMapper;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ItemBagDAO extends ServiceImpl<ItemBagMapper, ItemBag> {
    /**
     * 根据类型获取徽章
     * @param type
     * @return
     */
    public List<ItemBag> getByType(Integer type) {
        return lambdaQuery()
                .eq(ItemBag::getType, type)
                .list();

    }
}
